package com.sw.dubbo.web.controller;

import com.sw.dubbo.api.IDogService;
import com.sw.dubbo.api.IHumanService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wodezuiaishinageren
 */
@RestController
@RequestMapping("/")
public class IpController {
    @Reference
    private IHumanService humanService;
   /* @Reference
    private IDogService dogService;*/
    @RequestMapping("/ip")
    public String ipHand(String ip){
        String ps = humanService.sayHello();
        //String ds = dogService.sayHello();
       return "wancheng";
    }
}
